package com.mlog.njyjy.ndop.share.sql.annotation;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * <p>
 * table index
 * </p>
 *
 * @author <a href="mailto:yingxiufeng@mlogcn.com">alex</a>
 * @version v1.0, 2020/7/10
 */
@Target({})
@Retention(RUNTIME)
public @interface TableIndex {


    /**
     * the name of index
     * if not provided generate with columns
     * eg idx_a_b_c
     * @return
     */
    String name() default "";


    /**
     * (Required) The names of the columns to be included in the index.
     * 列名支持类字段名 或 数据表实际列名
     * @return The names of the columns making up the index
     */
    String[] columns();
}
